package no.hib.dat102;

public class KlientSirkulaer {

	public static void main(String[] args) {
		
		String str= "Dette er en streng";
		int lengde = str.length();
		
		SirkulaerTabellKo<Character> tegnTabell= new SirkulaerTabellKo<Character>();
		
		for (int i = 0; i < lengde ;i++){
		tegnTabell.innKo(new Character(str.charAt(i)));
		}
		
		System.out.println(str);
		try{
			
		while(!tegnTabell.erTom()){
			
		Character tegn_obj= (Character) tegnTabell.utKo();
		System.out.print(tegn_obj);
			}
		}
		catch(EmptyCollectionException ex) {
		System.out.println(ex.getMessage());
			}
		
		
		}
	}
